package com.dailyblue.project.estate.letter.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dailyblue.project.estate.commons.bean.Letter;
import com.dailyblue.project.estate.commons.bean.Owner;
import com.dailyblue.project.estate.commons.util.JsonResult;
import org.springframework.stereotype.Service;

@Service
public interface LetterService extends IService<Letter> {
    //添加信件
    JsonResult addLetter(Letter letter);
    //查询所有信件
    JsonResult findAllLetters();
    //查询一个信件
    JsonResult findOneLetter(String letterId);
    //删除一个信件
    JsonResult deleteLetter(String letterId);
    //更新一个信件
    JsonResult updateLetter(Letter letter);
}
